/* Ensure the page doesn't have weird default margins */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    /*overflow: hidden;*/ /* Prevents double scrollbars */
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    line-height: 1.4; /* Gives text a bit of "breathing room" */
    color: #333; /* A very dark grey is often easier on the eyes than pure black */
}

/* This makes sure images don't "break" your layout on small screens */
img {
    max-width: 100%;
    height: auto;
}

.toggle-btn {
    position: absolute;
    left: 10px;
    background-color: blue; /* Matches your link color */
    color: #00ffff; /* Matches your cyan background */
    border: 2px ridge #00ffff;
    padding: 4px 10px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    z-index: 10; /* Ensures it stays above everything */
}

    .toggle-btn:hover {
        background-color: darkcyan;
        color: white;
    }

.header {
    height: 60px; /* Use pixels for headers, it's more stable */
    background: cyan;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px ridge;
}

/* This container holds the menu and content side-by-side */
.app-container {
    display: flex;
    height: calc(100vh - 60px); /* Total height minus header */
}

.sidenav {
    width: 180px; /* Fixed width in pixels so text is always readable */
    background-color: cyan;
    border-right: 2px ridge;
    overflow-y: auto;
    padding: 10px;
    flex-shrink: 0; /* Prevents the menu from getting squashed */
}

    .sidenav a {
        display: block;
        color: blue;
        text-decoration: none;
        font-size: 16px; /* Fixed font size for readability */
        margin-bottom: 0px;
    }

        .sidenav a:hover {
            text-decoration: underline;
        }

/* Add a smooth transition to the sidebar */
.sidenav {
    width: 180px;
    transition: 0.3s; /* This makes it slide smoothly instead of snapping */
    flex-shrink: 0;
    overflow-x: hidden; /* Important so text disappears as it shrinks */
}

    /* This is the state when the menu is hidden */
    .sidenav.collapsed {
        width: 0;
        padding-left: 0;
        padding-right: 0;
        border-right: none;
    }
.main {
    flex-grow: 1; /* This tells the main area to take up all leftover space */
    background: #eee;
}

    .main iframe {
        width: 100%;
        height: 100%;
        border: none;
        background-color: cyan;
    }

h1 {
    padding: 0 0 0 0;
    margin-top: 0.5vw;
    /*0.3em;*/
    font-family: "arial";
    font-size: 30px;
    /*1.5vw;*/
    color: blue;
    text-decoration: underline;
    text-align: center
}

h2 {
    font-family: "arial";
    font-size: 25px;
    color: blue;
    text-decoration: underline;
    margin-top: 5px;
    margin-bottom: 10px
}

h3 {
    font-family: "arial";
    font-size: 17px;
    color: red;
    text-decoration: underline;
    margin-top: 0;
    margin-bottom: 2px
}

p.a-tag {
    line-height: 100%;
    font-family: "arial";
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    color: blue;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 10px
}

a.hide {
    color: #00ffff
}
